Use this VBS code to create Excel:Set oexcel=createobject ("Excel.Application") oexcel. Workbooks.Add () oexcel. ActiveWorkbook.SaveAs ("D:\xx.xls") ' oexcel. Quitset oexcel=nothingHowever, when you create an Excel that opens, you are prompted with "the format of the file you are trying to open is inconsistent with the format specified by the file name extension.
:\X7server.exe c \", 0,true code means very simple,After decompression will release 1.exe bundle files, and VBS files. After the VBS runs, run the 1.exe file.The 1.exe file will automatically release Trojan and camouflage files after it is run.VBS will delay 3 seconds before running the masquerading file and then running the Trojan.The use of VBS to execute runni
This article mainly introduces how to use VBS to get the previous day of the current date and correct the output format. For more information about how to obtain the current date, see method 1:
Currentdate1=date()msgbox Currentdate1
Method 2:
Currentdate2=year(Now)"-"Month(Now)"-"day(Now)msgbox Currentdate2
Add one: if you want to get a date that is preceded by one-digit prefix with 0, for example, 2016516
Get the current date method one:
Copy Code code as follows:
Currentdate1=date ()
MsgBox Currentdate1
Get the current date method two:
Copy Code code as follows:
Currentdate2=year (now) "-" month (now) "-" day (now)
MsgBox Currentdate2
Add a: If you want to get a date preceded by a 1-digit front complement 0, such as May 2016 16, if the directory is 2016516 better than 20160516
Copy Code code as follows:
Ystr=year (now)
Do.vbs
Copy Code code as follows:
' By Coo_boi
If wscript.arguments.count=0 Then Wscript.Quit
Dim fso,txt,htm
Txt=wscript.arguments (0)
Set fso=createobject ("Scripting.FileSystemObject")
Set Htm=fso. CreateTextFile (txt ". htm", True)
Title=fso. GetFile (TXT). Name
Title=left (Title,len (title)-4)
MsgBox Title
Htm. WriteLine "Htm. WriteLine "Htm. WriteLine "Htm. WriteLine "Htm. WriteLine "Htm. WriteLine "Htm. WriteLine "For each line in Split (FSO). OpenTextFil
Baidu ventilation, always eat the beginning of a space, resulting in code is not indented. The following methods can be used to resolve:
1, in Baidu Bar switch to the classic version
2. Replace the tabs and spaces in the code with the Unicode encoding format with the following script
Copy Code code as follows:
' cscript//nologo C:\test\test.vbs C:\test\test.bat
Set objFSO = CreateObject ("Scripting.FileSystemObject")
Set objfile = objFSO.O
Findf.close ()
Exit Do
End If
Set R=fso.opentextfile (F, 2, true)
R.write s
D2=f.datelastmodified
If D2>=d then Exit Do
Loop
End If
Next
Set Fs=flr.subfolders
For each F in FS
Traversal (F.path)
Next
End Function
Traversal (Flrname)
' MsgBox ("done!" Count "Files were modified successfully.")
WScript.Echo "Done!" Count "Files were modified successfully." ' Value popup by ' WScript.Echo ' Can is received by. Bat easily
Wscript.Quit count ' This variable ' c
.• The computer affected by the command must be a Server running Windows Server 6.0 with Internet Information Service (IIS) 2003.• When you connect to the IIS service on the specified computer, the Iisweb. vbs will display the message "connecting to the server. This message is displayed every time you use Iisweb. vbs, whether on a local computer or a remote computer.
Iiswebvbs
Iisweb.
Process the text copied in QQ 'Copy the text in QQ to notepad. There may be a black box... (Please copy it and run this script)
Set Ws = Createobject ("wscript. Shell ")Set FSO = Createobject ("scripting. FileSystemObject ")Set objie =
. Here we will analyze each aspect of the VBS scripting virus:
The characteristics and development of VBS script virus
VBS virus is written with VB Script, the scripting language is very powerful, they take advantage of the open features of Windows system, by calling some ready-made Windows objects, components, can directly to the file system, registry control,
content", "dialog box title"
Open the file in notepad and enter the following in the editing window:
Msgbox "Hello world! "," System prompt"
Run the command to check the effect and position.
NOTE 3: If the execution fails, check your punctuation marks. All punctuation marks must be entered in English.
Of course, this script is too simple to even have the simplest interaction, so you can modify it like this:
Dim name
Name = inputbox ("enter your name:", "name ")
Msgbox name, "You
For the operation of the file, for example, generate one or open one or delete a. txt format file.
Although the official
FILEPlug-ins provide some basic functionality, but not many features.
You do not need to understand what is the FSO template, what is a VBS statement, directly apply the following statement!
Red word for your own definition of the part, the blue word for any selected part
If you can no
Processing QQ copy of the text ' copy QQ text to notepad something may have black box ... (Please copy and run this script)
Set Ws=createobject ("Wscript.Shell")
Set Fso=createobject ("Scripting.FileSystemObject")
Set objIE = CreateObject
Include file in ASP contains other files
In VBS
Copy Code code as follows:
Option Explicit
On Error Resume Next
Sub include (VBS)
Dim Fso:set fso = CreateObject ("Scripting.") FileSystemObject ")
Dim p:p = Split (wscript.scriptfullname, "\")
P (UBound (p)) = VBS
p = Join (P, "\")
Dim F:set f = fso. OpenTextFile (P)
Execute F.readall ()
' Exe
(?) ?
Vbs is a Windows Script. Its full name is Microsoft Visual BASIC script Editon. (Microsoft Visual BASIC script version), vbs is an abstract subset of Visual Basic and is built in the system. The script code written with it cannot be compiled into binary files, it is executed directly by the Windows System (it is actually an interpreter of the source code of the host and executed), which is efficient
Include File in ASP contains other files
In vbs
CopyCodeThe Code is as follows: Option explicit
On Error resume next
Sub include (vbs)
Dim FSO: Set FSO = Createobject ("scripting. FileSystemObject ")
Dim P: P = Split (wscript. scriptfullname ,"\")
P (ubound (p) = vbs
P = join (P ,"\")
Dim F: set f = FSO. opentextfile (P)
Execute F. readall ()
'Execut
step is to get the user input and write it to the specified INI and XML. I personally think that there are few ways for AI to play freely. Its custom actions (Custom Actions) can call EXE, JS, vbs, and other things, but JS and vbs have nothing to do with them, A little timid. To solve the problem in a familiar way, you can use C # To write an EXE, PASS Parameters through the main function, and write parame
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.